useblocks 1.2.0 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/{iframe-eblock.71aea198.html → iframe-eblock.0f8a7cdc.html} +2 -2
- package/iframe/{iframe.71aea198.html → iframe.0f8a7cdc.html} +2 -2
- package/iframe/js/elMarkupHelper.CVRl29u5.js +277 -0
- package/iframe/js/iframe-eblock.body.0f8a7cdc.js +9 -0
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/iframe.body.0f8a7cdc.js +129 -0
- package/iframe/js/iframe.js +2 -2
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{d6929171.js → 14db5918.js} +1 -1
- package/static/core/{1d170e32.js → 23bd4db7.js} +1 -1
- package/static/core/{9f4f4873.js → 24514bff.js} +1 -1
- package/static/core/423b60ed.js +28 -0
- package/static/core/{5b586fcb.js → 4714d568.js} +1 -1
- package/static/core/{5278dff9.js → 4bcf1434.js} +1 -1
- package/static/core/{12f773c1.js → 4c6480d1.js} +1 -1
- package/static/core/{def48fbd.js → 50e5a944.js} +1 -1
- package/static/core/5f9e49c5.js +4 -0
- package/static/core/{c8fe849c.js → 730b266e.js} +1 -1
- package/static/core/{6dcb28a1.js → 772dbf26.js} +1 -1
- package/static/core/{29e211b1.js → 7bcc8e64.js} +2 -2
- package/static/core/{a34a72bf.js → 7bdd0086.js} +2 -2
- package/static/core/{91f77c2d.js → 962d3bd3.js} +1 -1
- package/static/core/{28d63741.js → 97fd2a9c.js} +1 -1
- package/static/core/{6bc1c806.js → 980125d2.js} +10 -10
- package/static/core/{69789892.js → 9f02da15.js} +1 -1
- package/static/core/{cea06bde.js → af791cc2.js} +1 -1
- package/static/core/{1dc51b93.js → b5ce7e85.js} +1 -1
- package/static/core/{1594df08.js → b870ed7e.js} +1 -1
- package/static/core/{bfb25e63.js → cc6447d7.js} +1 -1
- package/static/core/{f0c51560.js → ce15bbe4.js} +1 -1
- package/static/core/{cf548c07.js → d19c0f8b.js} +1 -1
- package/static/core/{e460bb13.js → d4984fc6.js} +1 -1
- package/static/core/{f9749132.js → d894dc76.js} +1 -1
- package/static/core/{6f7a2152.js → de1624b4.js} +1 -1
- package/static/core/{3d3eb29f.js → e56fc965.js} +1 -1
- package/static/core/{1516d48e.js → ec5c9b68.js} +10 -10
- package/static/esm/73935695.js +1 -0
- package/static/umd-runtime/{runtime.DxsFr3F4.js → runtime.DKIA3Mo3.js} +1 -1
- package/useblocks-core.0f8a7cdc.js +859 -0
- package/useblocks-esm.js +11 -11
- package/{useblocks-po.71aea198.js → useblocks-po.0f8a7cdc.js} +1 -1
- package/useblocks.d.ts +34 -2
- package/useblocks.js +12 -12
- package/vendor/useblocks-ui-kit/package.json +1 -1
- package/iframe/js/elMarkupHelper.D_gxM3uK.js +0 -279
- package/iframe/js/iframe-eblock.body.71aea198.js +0 -9
- package/iframe/js/iframe.body.71aea198.js +0 -129
- package/static/core/3f80e59d.js +0 -28
- package/static/core/57fee71e.js +0 -4
- package/static/esm/f97f84b4.js +0 -1
- package/useblocks-core.71aea198.js +0 -859
package/README.md
CHANGED
|
@@ -451,6 +451,8 @@ Editor UI tuning. Use **`instance.setConfig`**, **`instance.updateConfig`**, **`
|
|
|
451
451
|
| saveHotkeyEnabled | Save by Ctrl+S / Cmd+S. `false` turns it off; the browser's "Save page" dialog still does not open. | true |
|
|
452
452
|
| commandButtonsEnabled | Show primary and secondary buttons. | true |
|
|
453
453
|
| | | |
|
|
454
|
+
| lockEditor | Read-only mode: the email cannot be changed. Locks the canvas, the code editor, the subject and preheader fields, import, undo/redo (buttons and hotkeys), the version history, email settings and UTM parameters, the AI chat, layout conversion and Gmail annotations. Buttons stay in place but are disabled; the AI icon next to the subject and preheader is hidden. API methods (`show`, `setEmail`, undo via the API) are not locked. Can be switched with `setConfig`. | false |
|
|
455
|
+
| | | |
|
|
454
456
|
| sidePanelFloating | Floating side panel. | true |
|
|
455
457
|
| desktopMobileSwitchRule | Modes switch bar. | true |
|
|
456
458
|
| desktopMobileSwitchPanel | Modes switch panel. | false |
|
|
@@ -826,6 +828,7 @@ The section also accepts `compressMaxSize` and `compressMaxWidthOrHeight` — th
|
|
|
826
828
|
| `trashPath` | `string` | Path to trash/recycle bin folder | - |
|
|
827
829
|
| `tempPath` | `string` | Path to temporary folder for uploads | - |
|
|
828
830
|
| `useSoftDelete` | `boolean` | Enable client-side soft delete | `false` |
|
|
831
|
+
| `trashSupportsFolders` | `boolean` | Trash can hold folders (with `useSoftDelete`) | `true` |
|
|
829
832
|
| `ensureFolderTrailingSlash` | boolean | Add a trailing slash to folder paths | `true` |
|
|
830
833
|
| `validateDuplicates` | `boolean` | Client-side check for existing files or folders | - |
|
|
831
834
|
|
|
@@ -865,6 +868,7 @@ The section also accepts `compressMaxSize` and `compressMaxWidthOrHeight` — th
|
|
|
865
868
|
##### Important Notes
|
|
866
869
|
|
|
867
870
|
- **Soft Delete**: When `useSoftDelete=true`, delete operations move items to `trashPath`
|
|
871
|
+
- **Trash without folders**: If your backend cannot keep folders in the trash, set `trashSupportsFolders=false`: deleting a folder moves the files of its whole subtree to the trash as a flat list (a clashing name gets a number, `photo (1).png`, if `renameItem` is implemented) and deletes the emptied folders permanently. If any file fails to move, the folder is kept
|
|
868
872
|
- **Root Folder**: Use `rootId` or empty string for root operations
|
|
869
873
|
- **Path Resolution**: `trashPath` and `tempPath` are resolved to actual folder IDs
|
|
870
874
|
- **URL Upload**: Should check if file already exists on current server
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"src": "../packages/html2amp/rules.json",
|
|
12
12
|
"isDynamicEntry": true
|
|
13
13
|
},
|
|
14
|
-
"_elMarkupHelper.
|
|
15
|
-
"file": "js/elMarkupHelper.
|
|
14
|
+
"_elMarkupHelper.CVRl29u5.js": {
|
|
15
|
+
"file": "js/elMarkupHelper.CVRl29u5.js",
|
|
16
16
|
"name": "elMarkupHelper",
|
|
17
17
|
"dynamicImports": [
|
|
18
18
|
"../packages/html2amp/rules.json",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"src": "iframe-eblock.html",
|
|
27
27
|
"isEntry": true,
|
|
28
28
|
"imports": [
|
|
29
|
-
"_elMarkupHelper.
|
|
29
|
+
"_elMarkupHelper.CVRl29u5.js"
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
32
|
"iframe.html": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"src": "iframe.html",
|
|
36
36
|
"isEntry": true,
|
|
37
37
|
"imports": [
|
|
38
|
-
"_elMarkupHelper.
|
|
38
|
+
"_elMarkupHelper.CVRl29u5.js"
|
|
39
39
|
]
|
|
40
40
|
},
|
|
41
41
|
"js/typograf/typograf.all.js": {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
|
5
5
|
<script>var e=window.__useblocks__||(window.__useblocks__={});(function(){"use strict";e===void 0&&(window.__amdEnv={});var t=window.parent&&window.parent!==window?window.parent:null;if(!t||typeof t.postMessage!=`function`)return;var n=`em:module-body`,r=`em:module-body-ack`,i=1e3,a=6e4,o=300,s={},c={},l=0,u=!1,d=!1;function f(){u||typeof window.addEventListener!=`function`||(u=!0,window.addEventListener(`message`,function(e){var n=e&&e.data;if(n&&typeof n==`object`&&e.source===t){if(n.operationId===r){var i=c[n.for];i&&i();return}var a=s[n.operationId];a&&a(n.data)}}))}function p(e){return d?null:(f(),new Promise(function(r){l+=1;var o=`em:body:`+l,u=`em:body-error:`+l,f=!1,p=null;function m(e){f||(f=!0,p!==null&&window.clearTimeout(p),delete s[o],delete s[u],delete c[o],r(e||null))}s[o]=m,s[u]=function(){m(null)},c[o]=function(){p!==null&&window.clearTimeout(p),p=window.setTimeout(function(){m(null)},a)},p=window.setTimeout(function(){d=!0,m(null)},i),t.postMessage({operationId:n,data:{url:e},result:o,error:u},`*`)}))}window.location&&window.location.protocol===`file:`||(e.moduleTransport=p);var m=null;function h(){m=null;try{t.postMessage({mark:`__emmDiagnostics__`,type:`loader`,items:(e.loaderTimings||[]).slice()},`*`)}catch{}}e.onLoaderTiming=function(){m===null&&(m=window.setTimeout(h,o))}})(),(function(){"use strict";e===void 0&&(window.__amdEnv={}),e.bootCanvas=function(t){e.canvasBooted=!0;var n=!1;function r(){if(!n){n=!0;var e=document.createElement(`script`);e.src=t,document.head.appendChild(e)}}var i=e.moduleTransport;if(typeof i!=`function`){r();return}var a;try{a=i(t,t)}catch{a=null}if(!a||typeof a.then!=`function`){r();return}a.then(function(t){if(!t||n){r();return}n=!0;var i=URL.createObjectURL(t),a=document.createElement(`script`);a.src=i,a.onload=function(){URL.revokeObjectURL(i)},a.onerror=function(){URL.revokeObjectURL(i),e.blobBlocked=!0,n=!1,r()},document.head.appendChild(a)},r)}})();
|
|
6
|
-
__useblocks__.bootCanvas("./js/iframe-eblock.js?v=
|
|
7
|
-
<script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=
|
|
6
|
+
__useblocks__.bootCanvas("./js/iframe-eblock.js?v=0f8a7cdc");</script>
|
|
7
|
+
<script defer src="./js/boot-guard.js" data-entry="./js/iframe-eblock.js?v=0f8a7cdc" data-ns="__useblocks__"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
</body>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
|
5
5
|
<script>var e=window.__useblocks__||(window.__useblocks__={});(function(){"use strict";e===void 0&&(window.__amdEnv={});var t=window.parent&&window.parent!==window?window.parent:null;if(!t||typeof t.postMessage!=`function`)return;var n=`em:module-body`,r=`em:module-body-ack`,i=1e3,a=6e4,o=300,s={},c={},l=0,u=!1,d=!1;function f(){u||typeof window.addEventListener!=`function`||(u=!0,window.addEventListener(`message`,function(e){var n=e&&e.data;if(n&&typeof n==`object`&&e.source===t){if(n.operationId===r){var i=c[n.for];i&&i();return}var a=s[n.operationId];a&&a(n.data)}}))}function p(e){return d?null:(f(),new Promise(function(r){l+=1;var o=`em:body:`+l,u=`em:body-error:`+l,f=!1,p=null;function m(e){f||(f=!0,p!==null&&window.clearTimeout(p),delete s[o],delete s[u],delete c[o],r(e||null))}s[o]=m,s[u]=function(){m(null)},c[o]=function(){p!==null&&window.clearTimeout(p),p=window.setTimeout(function(){m(null)},a)},p=window.setTimeout(function(){d=!0,m(null)},i),t.postMessage({operationId:n,data:{url:e},result:o,error:u},`*`)}))}window.location&&window.location.protocol===`file:`||(e.moduleTransport=p);var m=null;function h(){m=null;try{t.postMessage({mark:`__emmDiagnostics__`,type:`loader`,items:(e.loaderTimings||[]).slice()},`*`)}catch{}}e.onLoaderTiming=function(){m===null&&(m=window.setTimeout(h,o))}})(),(function(){"use strict";e===void 0&&(window.__amdEnv={}),e.bootCanvas=function(t){e.canvasBooted=!0;var n=!1;function r(){if(!n){n=!0;var e=document.createElement(`script`);e.src=t,document.head.appendChild(e)}}var i=e.moduleTransport;if(typeof i!=`function`){r();return}var a;try{a=i(t,t)}catch{a=null}if(!a||typeof a.then!=`function`){r();return}a.then(function(t){if(!t||n){r();return}n=!0;var i=URL.createObjectURL(t),a=document.createElement(`script`);a.src=i,a.onload=function(){URL.revokeObjectURL(i)},a.onerror=function(){URL.revokeObjectURL(i),e.blobBlocked=!0,n=!1,r()},document.head.appendChild(a)},r)}})();
|
|
6
|
-
__useblocks__.bootCanvas("./js/iframe.js?v=
|
|
7
|
-
<script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=
|
|
6
|
+
__useblocks__.bootCanvas("./js/iframe.js?v=0f8a7cdc");</script>
|
|
7
|
+
<script defer src="./js/boot-guard.js" data-entry="./js/iframe.js?v=0f8a7cdc" data-ns="__useblocks__"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
</body>
|